# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BaseModel',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='\u6700\u540e\u4fee\u6539\u65f6\u95f4')),
            ],
        ),
        migrations.CreateModel(
            name='AvgHeartBeat',
            fields=[
                ('basemodel_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='api.BaseModel')),
                ('device_id', models.CharField(max_length=64, verbose_name='\u8bbe\u5907ID')),
                ('beat', models.IntegerField(default=0, verbose_name='\u5e73\u5747\u5fc3\u8df3')),
                ('timestamp', models.DateTimeField(verbose_name='\u65f6\u95f4\u6233(\u5206\u949f)')),
            ],
            options={
                'verbose_name': '\u5e73\u5747\u5fc3\u8df3\u6570\u636e',
                'verbose_name_plural': '\u5e73\u5747\u5fc3\u8df3\u6570\u636e',
            },
            bases=('api.basemodel',),
        ),
        migrations.CreateModel(
            name='DeviceData',
            fields=[
                ('basemodel_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='api.BaseModel')),
                ('device_id', models.CharField(max_length=64, verbose_name='\u8bbe\u5907ID')),
                ('beat', models.IntegerField(default=0, verbose_name='\u5fc3\u8df3')),
                ('lac', models.CharField(default=b'', max_length=64, verbose_name=b'lac')),
                ('ci', models.CharField(default=b'', max_length=64, verbose_name=b'ci')),
                ('lon', models.CharField(default=b'', max_length=16, verbose_name='\u7ecf\u5ea6')),
                ('lat', models.CharField(default=b'', max_length=16, verbose_name='\u7eac\u5ea6')),
                ('radius', models.IntegerField(default=0, verbose_name='\u8bef\u5dee')),
                ('address', models.CharField(default=b'', max_length=128, verbose_name='\u4f4d\u7f6e')),
            ],
            options={
                'verbose_name': '\u8bbe\u5907\u6570\u636e',
                'verbose_name_plural': '\u8bbe\u5907\u6570\u636e',
            },
            bases=('api.basemodel',),
        ),
        migrations.CreateModel(
            name='UserDevice',
            fields=[
                ('basemodel_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='api.BaseModel')),
                ('user_id', models.CharField(max_length=64, verbose_name='\u624b\u673aID')),
                ('device_id', models.CharField(max_length=64, verbose_name='\u8bbe\u5907ID')),
                ('alias', models.CharField(default=None, max_length=64, null=True, verbose_name='\u522b\u540d')),
                ('heart_mode', models.BooleanField(default=False, verbose_name='\u5fc3\u8df3\u62a5\u8b66\u6a21\u5f0f')),
                ('location_mode', models.BooleanField(default=False, verbose_name='\u8ddd\u79bb\u62a5\u8b66\u6a21\u5f0f')),
            ],
            options={
                'verbose_name': '\u7528\u6237\u8bbe\u5907',
                'verbose_name_plural': '\u7528\u6237\u8bbe\u5907',
            },
            bases=('api.basemodel',),
        ),
    ]
